<template>
  <div class="my-solt">
    <div class="header">
      <!-- 默认插槽 -->
      <slot />
    </div>
    <div class="main">
      <div class="left">
        <!-- 命名插槽 -->
        <slot name="left" />
      </div>
      <div class="right">
        <slot name="right" />
      </div>
    </div>
  </div>
</template>

<script>
export default {};
</script>

<style lang="scss" scoped>
a{
    color: white;
    font-size: 26px;
    padding: 5px;
}
.header{
    background-color: orange;
    height: 100px;
}
.main{
    display: flex;
    .left{
        height: 400px;
        width: 200px;
        background-color: orangered;
    }
    .right{
        background-color: darkblue;
        height: 400px;
        // flex:主轴方向 占据剩余大小
        flex: 1;
    }
}
</style>